a = eval(input())
n = eval(input())
s = 0
for i in range(1,n+1):
    for j in range(i,0,-1):
        s += a*(10**(j-1))
print(s)